﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Runtime.Serialization;

namespace LunchRoller.ViewModels.Json.JiePangResponse
{
    [DataContract]
    public class ResponseBody
    {
        [DataMember]
        public bool has_more { get; set; }
        [DataMember]
        public Place[] items {get;set;}
      
    }


    [DataContract]
    public class Place
    {

        //has_surprise": true,//此地是否有惊喜 
        [DataMember]
        public bool has_surprise { get; set; }

        //"has_event": true,//此地是否有活动
        [DataMember]
        public bool has_event { get; set; }
        //"guid":"D176335F12940F03A13E3E4B51A1CF31",//地点ID 
        [DataMember]
        public string guid { get; set; }
        //"name":"\u65e9\u9ede\u5927\u738b",//地点名称 
        [DataMember]
        public string name { get; set; }
        //"addr":"950\u53f0\u7063\u53f0\u6771\u7e23\u53f0\u6771\u5e02\u6b63\u6c23\u8def242\u865f",//地点地址
        [DataMember]
        public string addr { get; set; }

        //"link":"http://jie.pn/l/sjEy0",//地点短链接 
        [DataMember]
        public string link { get; set; }
        [DataMember]
        public Category[] categories { get; set; }
    }

    [DataContract]
    public class Category
    {
            // "is_primary":1,//是否为主分类（街旁允许给每个POI增加三个分类信息） 
        [DataMember]
        public int is_primary { get; set; }
            //"icon":"/static/img/categories/entertainment/karaoke.gif",//分类对应的图标 
        [DataMember]
        public string icon { get; set; }
            //"id":"0101", 
        [DataMember]
        public string id { get; set; }
            //"name":"KTV", 
        [DataMember]
        public string name { get; set; }

            //"top_category":
            //{
            //"name":"休闲娱乐", "id":"0100" 

            //}
        [DataMember]
        public Category top_category { get; set; }
    }

    //[DataContract]
    //public class CategoryReference
    //{
    //    //"name":"休闲娱乐", "id":"0100" 
    //    [DataMember]
    //    public string name { get; set; }
    //    [DataMember]
    //    public string id { get; set; }
    //}
}
